package com.jihu.mall.auth.feign;

import com.jihu.mall.common.utils.MallServiceList;
import com.jihu.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jihu
 * @date 2021/4/19
 */
@FeignClient(MallServiceList.MALL_THIRD_PARTY)
public interface ThirdPartFeignService {

    @GetMapping("/sms/sendcode")
    public R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
